package com.ophiux.member.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("会员信息表  --  返回实体")
public class MemberDTO {

	@ApiModelProperty("会员id")
	private Integer id;

	@ApiModelProperty("微信授权open_id")
	private String openId;

	@ApiModelProperty("姓名")
	private String name;

	@ApiModelProperty("职称")
	private String professional;

	@ApiModelProperty("微信名称")
	private String wechatName;

	@ApiModelProperty("性别 0未知  1男  2女")
	private String sex;

	@ApiModelProperty("手机号")
	private String phone;

	@ApiModelProperty("手机验证时间")
	private LocalDateTime phoneVerifyTime;

	@ApiModelProperty("QQ")
	private String qq;

	@ApiModelProperty("微信号")
	private String wechat;

	@ApiModelProperty("邮箱")
	private String email;

	@ApiModelProperty("店名")
	private String storeName;

	@ApiModelProperty("经营类型（16字）")
	private String businessType;

	@ApiModelProperty("经营地址")
	private String businessAddress;

	@ApiModelProperty("注册时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime registerTime;

	@ApiModelProperty("注册来源类型  1普通用户，2推广员，3自己注册")
	private Integer registerOrigin;

	@ApiModelProperty("注册来源账号id")
	private Integer registerOriginMemberId;

	@ApiModelProperty("禁用登录标志 0禁用  1有效")
	private Integer status;

	@ApiModelProperty("主名片样式 ID")
	private Integer cardStyleId;

	@ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime createdAt;

	@ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime updatedAt;

}
